﻿using Century.Business.CMS;
using Century.Model.CMS;
using Century.Web.UI.MVC;
using Century.Web.UI.MVC.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;


namespace WebUI.Controllers
{
    public class HomeController : CenturyBaseController
    {
        public HomeController(ISiteService siteService) : base(siteService) { }
       
        public ActionResult Index(string stPath, string pgName)
        {
           
            SitePage page = null;
            page = GetPage(pgName, stPath);
            if (page == null)
            {
                return View("Error");
            }
            return View(page);

        }
       
    }
}
